// JavaScript Document
function selectOption(n,val){
	var obj = document.getElementById(n);
	for(var i = 0; i < obj.options.length; i++){
		if(obj.options[i].value == val){
			obj.options[i].selected = true;
		}
	}
}
function changeNextDisabled(name,next){
	var obj = document.getElementsByName(name);
	var bol = false;
	for(var i = 0; i < obj.length; i++){
		if(obj[i].checked == true){
			bol = true;
			break;
		}
	}
	if(bol == true){
		document.getElementById(next).disabled = false;
	}else{
		document.getElementById(next).disabled = true;
	}
}

function formatAsMoney(mnt) {
    mnt -= 0;
    mnt = (Math.round(mnt*100))/100;
    return (mnt == Math.floor(mnt)) ? mnt + '.00' : ((mnt*10 == Math.floor(mnt*10)) ? mnt + '0' : mnt);
}